package com.diamond.service;

import java.util.List;

import com.diamond.bo.QueryUserBO;
import com.diamond.bo.ReturnBO;
import com.diamond.bo.SalesBO;
import com.diamond.bo.UserBO;
import com.diamond.entity.User;
import com.diamond.po.UserPO;


/**
 * @author JSmart Tools
 */
 
public interface IUserService extends IService<UserPO> {

	public List<UserBO> backLogin(UserBO userBo)throws Exception;
	
	public void addOrUpdateUser(UserPO userPo) throws Exception;

	public ReturnBO<UserBO> queryUser(QueryUserBO queryUserBo) throws Exception;

	public UserBO findUserByUserId(String userId) throws Exception;

	public Boolean deleteUser(String[] userIds) throws Exception;

	public Boolean checkUserName(String userName)throws Exception;

	public List<UserBO> queryUserByUserType(String[] userTypes)throws Exception;

	public User login(UserBO userBo);

	public User loginCenter(UserBO userBo);

	public void updateSonPass(Long userId, String pass);

	public List getSales(Long userId, SalesBO salesBO);
	
	public Boolean updateBackUserPW(Long userId, String oldPassword, String newPassword) throws Exception;
	
	public List<UserBO> searchSubUser(Long userId) throws Exception;

	public void updateSonPassByUserId(Long subUserId, String surepass);

}
